<include file="public@header"/>
</head>
<body>
<div class="layui-fluid js-check-wrap">
    <form method="post" class="layui-form js-ajax-form margin-top-20" action="{:url('AdminSensitive/editPost')}">
        <div class="layui-card">
            <div class="layui-card-header">{:lang('PORTAL_ADMINSENSITIVE_EDIT')}</div>
            <div class="layui-card-body">
                <div class="layui-form-item">
                    <input type="hidden" name="id" value="{$post.id}">
                    <label class="layui-form-label"><span class="form-required">*</span>{:lang('SENSITIVE_WORDS')}:</label>
                    <div class="layui-input-block">
                        <input type="text" class="layui-input" name="name" value="{$post.name}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><span class="form-required"></span>{:lang('SUBSTITUTE_WORD')}:</label>
                    <div class="layui-input-block">
                        <input type="text" class="layui-input" name="displace" value="{$post.displace}">
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <if condition="cmf_auth_check(cmf_get_current_admin_id(), 'portal/AdminSensitive/editPost')">
                            <button type="submit" class="layui-btn layui-btn-normal js-ajax-submit">{:lang("SAVE")}</button>
                        </if>
                        <a class="layui-btn layui-btn-primary" href="__URL__">{:lang("BACK")}</a>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>
<include file="public@footer"/>
